package com.ace.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ace.dao.AceMapper;
import com.ace.model.Ace;
import com.ace.service.IAceService;

@Service("iAceService")
public class AceServiceImpl implements IAceService {

    @Resource
    private AceMapper aceMapper;

    @Override
    public Ace selectByPrimaryKey(Integer id) {
        return aceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int save(Ace ace) {
        return aceMapper.insertSelective(ace);
    }
    
    @Override
    public int update(Ace ace){
    	return aceMapper.updateByPrimaryKeySelective(ace);
    }
    
    @Override
    public int delete(Integer id){
    	return aceMapper.deleteByPrimaryKey(id);
    }
    
    @Override
    public List<Ace> getList(){
    	return aceMapper.getList();
    }
}